home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000122_icon-group-sender _Mon May 9 22:16:03 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 9 May 1994 23:45:07 MST
  2. Path: ucbvax!hplabs!sdd.hp.com!hp-pcd!news!edmoore
  3. From: edmoore@vcd.hp.com (Ed Moore)
  4. Newsgroups: comp.lang.icon
  5. Subject: Icon for Unix scripts?
  6. Message-Id: <CpK36s.MwA@vcd.hp.com>
  7. Date: 9 May 94 22:16:03 GMT
  8. Sender: news@vcd.hp.com (News user)
  9. Organization: Hewlett-Packard VCD
  10. Lines: 41
  11. Nntp-Posting-Host: hpvcledm.vcd.hp.com
  12. X-Newsreader: TIN [version 1.2 PL1.4]
  13. Apparently-To: icon-group@cs.arizona.edu
  14. Status: R
  15. Errors-To: icon-group-errors@cs.arizona.edu
  16.  
  17. I know nothing of Icon except what I read today in the FAQ.  I need a
  18. better way than ksh to create Unix shell scripts.  I had come to believe
  19. that method is perl.  My knowledge of perl consists of a couple of hours
  20. reading of "Learning Perl".  Maybe I should consider Icon instead of perl.
  21. From the FAQ:
  22.  
  23. : Icon is a very high level general-purpose programming language with
  24. : extensive features for processing strings (text) and data structures.
  25.  
  26. This sounds vaguely like perl.
  27.  
  28. : Icon is an imperative, procedural language
  29.  
  30. What does imperative means in this context?
  31.  
  32. : It has a string scanning facility for pattern matching that avoids 
  33. : the tedious details usually associated with analyzing strings.
  34.  
  35. Better than perl's?
  36.  
  37. : Several implementations of Icon have high-level graphics facilities with
  38. : an easily programmed window interface.
  39.  
  40. Now this is what got my attention!  I need a way to create a simple,
  41. graphical interface to a Unix script.  The script would open a window
  42. showing all arguments for the script.  Each argument would have two
  43. or more options.  A default option would be shown for some arguments.
  44. Options would be chosen with mouse picks.  Choosing an option would mark
  45. it in the window and unmark any conflicting options.  The window would
  46. have a file scroll table from which multiple files could be selected
  47. with the mouse.  Finally, the window would have a Do-It button to
  48. execute the action of the script.  Can Icon fill this role?  We run on
  49. HP-UX systems with X Windows.
  50.  
  51. Thanks for any help you can give me.
  52.  
  53. --
  54. Ed Moore
  55. Hewlett-Packard
  56. Vancouver, WA, USA
  57. edmoore@vcd.hp.com
  58.